package com.example.servicetest

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log
import android.widget.Toast

class BootCompleteReceiver: BroadcastReceiver() {
    private  val TAG = "BootCompleteReceiver"
    override fun onReceive(context: Context?, intent: Intent?) {
//        TODO("Not yet implemented")
        Toast.makeText(context,"接收到了开机广播",Toast.LENGTH_LONG).show()
        Log.e(TAG, "onReceive: ")
    }

}